package com.bw.service;

import com.bw.entity.Roleadm;
import com.bw.entity.TbUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@FeignClient("port-server")
public interface PortService {


      @PostMapping("login")
      TbUser login(@RequestBody TbUser tbUser);
      @RequestMapping("portlist")//接口列表
      List portlist(@RequestParam("mohu") String mohu);
      @RequestMapping("rolelist")//角色管理列表
      List rolelist(@RequestParam("mohu") String mohu);
      @RequestMapping("admadds")
      Roleadm admadds(@RequestBody Roleadm roleadm);
      @RequestMapping("admdel")
      String[] del(@RequestParam("id") String id);
      @RequestMapping("findByadma")
      Roleadm findByadma(@RequestParam("id") int id);
      @RequestMapping("updateByadmaKey")
      void updateByadmaKey(@RequestBody Roleadm adma);
      @RequestMapping("portcontext")
      List portcontext(@RequestParam("qxqid") int qxqid);
      @RequestMapping("rcport")//入参列表
      List rcport(@RequestParam("rcid")int rcid,@RequestParam("pdid") int pdid);
      @RequestMapping("ccport")//出参列表
      List ccport(@RequestParam("ccid")int ccid,@RequestParam("pdid") int pdid);
      @RequestMapping("requesthead")//请求头
      List requesthead(@RequestParam("shicid")int shicid,@RequestParam("interid") int interid);
      @RequestMapping("requestbody")//请求参数
      List requestbody(@RequestParam("shicid")int shicid,@RequestParam("interid") int interid);
      @RequestMapping("Successorfailure")
      List Successorfailure();
}
